package com.code.day10;

public class Test {
    public static void main(String[] args) {
        //多态方式
        Fu fu = new Zi();
        System.out.println(fu.num); //看等号左边是谁,先调用谁中的成员变量,子类没有找父类
        fu.show();
        Zi zi = new Zi();
        zi.show();
    }
}
